#打印九九的矩形
for i in range(1,10):
    for j in range(1,10):
        print("*",end=" ")
    print()


hang=int(input("请输入要打印几行:\n"))
lie=int(input("请输入打印几列:\n"))
for a in range(1,hang+1):
    for b in range(1,hang+1):
        print("&",end=" ")
        print()